package com.taocore.top.title.domain;

import org.apache.commons.lang.StringUtils;

public class Replacement extends BatchChange{

	private String from;
	private String to;
	
	public void setFrom(String from) {
		this.from = from;
	}
	
	public String getFrom() {
		return from;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public String getTo() {
		return to;
	}

	@Override
	public String update(String s) {
		return StringUtils.replace(s, from, to);
	}
	
	public String toString()
	{
		return "from: " + from + "; to: " + to;
	}
	
}
